function verificandoMensagem(){
	
	var msgn = $.cookie('toastr');
	
	if (msgn != "" && msgn != undefined){
		
		var obj = jQuery.parseJSON( msgn );	
		
		if (!jQuery.isEmptyObject({obj})){
			
			toastr.options = {
				"closeButton": true,
				"debug": false,
				"progressBar": true,
				"positionClass": "toast-top-right",
				"onclick": null,
				"showDuration": "400",
				"hideDuration": "1000",
				"timeOut": "7000",
				"extendedTimeOut": "1000",
				"showEasing": "swing",
				"hideEasing": "linear",
				"showMethod": "fadeIn",
				"hideMethod": "fadeOut"
	        };
				
			toastr[obj.toastr](obj.msg, obj.title);
		}
		 
	}
	
	//Delete cookie
	$.removeCookie('toastr', { path: '/' });
	
}

function init() {
	
	verificandoMensagem();
	
}

$(document).ready(init);